<?php
// define environments
define('DB_DEV',"db_dev");
define('DB_TEST',"db_test");
define('DB_PRO',"db_pro");

$site_name = "gincms.codegin.com";

$env = "";

if (SERVER_NAME == "dev.".$site_name) $env = DB_DEV;
if (SERVER_NAME == "test.".$site_name) $env = DB_TEST;
if (SERVER_NAME == $site_name) $env = DB_PRO;

// override from CLI
if ($cli_database != "") {
    $env = $cli_database;
}

// override
//$env = DB_DEV;

$db_type = "mysql";
$db_server = "localhost";
$db_login = "root";
$db_password = "password";
$db_name = "gincms";

if ($env == DB_DEV) {
	$db_login = "root";
	$db_password = "password";
	$db_name = "gincms";	
}

if ($env == DB_TEST) {
	$db_login = "root";
	$db_password = "password";
	$db_name = "test";
}

if ($env == DB_PRO) {
	$db_login = "";
	$db_password = "";
	$db_name = "";
}
?>